package com.lcj.bff.driver.service;

import com.lcj.bff.driver.controller.form.*;
import com.lcj.common.util.PageUtils;

import java.util.HashMap;

public interface OrderService {
    public String acceptNewOrder(AcceptNewOrderForm form);

    public HashMap searchDriverExecuteOrder(AcceptNewOrderForm form);

    public HashMap searchDriverCurrentOrder(DriverIdForm form);

    HashMap searchOrderForMoveById(SearchOrderForm form);

    int arriveStartPlace(ArriveStartPlaceForm form);

    int startDriving(StartDrivingForm form);

    int updateOrderStatus(UpdateOrderStatusForm form);

    int updateOrderBill(UpdateBillFeeForm form);

    HashMap searchReviewDriverOrderBill(SearchOrderForm form);

    /**
     * 查询订单状态
     * @param form
     * @return
     */
    Integer searchOrderStatus(SearchOrderForm form);

    /**
     * 司机端手动更新付款状态
     * @param driverId
     * @param form
     * @return
     */
    String updateOrderAboutPayment(long driverId, SearchOrderForm form);

    /**
     * 分页查询司机订单列表
     * @param form
     * @return
     */
    PageUtils searchDriverOrderByPage(SearchDriverOrderByPageForm form);

    /**
     * 查询订单评价
     * @param form
     * @return
     */
    HashMap searchOrderById(SearchOrderForm form);
}